<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .test_transform {
            width:10px;
            height:200px;
            background-color: #c685d9;
            margin: 100px auto;
            /* 变形属性在3维空间发生 */
            /* transform-style:preserve-3d ; */
            /* 正值是顺时针，负值是逆时针 */
            transform-origin: 0px 0px;
            /* translate 移动正值 向屏幕外，负值 向屏幕里面（变小） */
            transition:height 10s,transform 1s;
            /* transform: translate3d(0px,0px,100px); */
        }
        .test_transform:hover {
            height:400px;
            transform:rotate(40deg);
        }
        .wrap {
            transform-style: preserve-3d;
            /* 视距 */
            perspective: 500px;
        }
    </style>
</head>
<body>
    <div class="wrap">
    <div class="test_transform"></div>
    </div>
</body>
</html>